﻿using HuaweiCloud.Dotnet.Samples.ESports.Common;
using HuaweiCloud.Dotnet.Samples.ESports.Common.Messages;
using HuaweiCloud.Dotnet.Samples.ESports.Device.Dto;
using HuaweiCloud.Dotnet.Samples.ESports.Device.Service;
using MassTransit;
using Microsoft.AspNetCore.Mvc;

// For more information on enabling Web API for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860

namespace HuaweiCloud.Dotnet.Samples.ESports.Device.Controllers
{
    [Route("api-device/v1/[controller]")]
    [Route("api/v1/[controller]")]
    [ApiController]
    public class SportTypeController : ControllerBase
    {
        public SportTypeController()
        {
        }
        [HttpGet]
        public ActionResult<IEnumerable<string>> Get()
        {
            return Ok(SportTypeConsts.Types);
        }
    }
}
